package com.my.test.entiy;

import java.util.Date;

import org.springframework.data.mongodb.core.geo.Point;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class User {
	 private String id;  
	    private String username;  
	    private int age;  
	    private Date createTime;
	    private Point loc;
	  
	    public User() {  
	  
	    }  
	  
	    public User(String username, int age, Date createTime,Point loc) {  
	        super();
	        this.username = username;
	        this.age = age;
	        this.createTime = createTime;
	        this.loc = loc;
	    }
	  
	    public Point getLoc() {
			return loc;
		}

		public void setLoc(Point loc) {
			this.loc = loc;
		}

		public String getId() {  
	        return id;  
	    }  
	  
	    public void setId(String id) {  
	        this.id = id;  
	    }  
	  
	    public String getUsername() {  
	        return username;  
	    }  
	  
	    public void setUsername(String username) {  
	        this.username = username;  
	    }  
	  
	    public int getAge() {  
	        return age;  
	    }  
	  
	    public void setAge(int age) {  
	        this.age = age;  
	    }  
	  
	    public Date getCreateTime() {  
	        return createTime;  
	    }  
	  
	    public void setCreateTime(Date createTime) {  
	        this.createTime = createTime;  
	    }  
}
